package com.tenton.mapper;

import com.tenton.pojo.ExCommodity;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Date: 2021/1/2
 * @Author: Tenton
 * @Description: ExCommodityMapper层
 */
public interface ExCommodityMapper {
    /**
     * 删除退货信息
     *
     * @param id
     * @return
     */
    int deleteByPrimaryKey(@Param("id") int id);

    /**
     * 添加退货信息
     *
     * @param exCommodity
     * @return
     */
    int insert(ExCommodity exCommodity);

    /**
     * 查询退货信息
     *
     * @param id
     * @return
     */
    ExCommodity selectByPrimaryKey(@Param("id") int id);

    /**
     * 查询所有退货信息
     *
     * @return
     */
    List<ExCommodity> selectAll();

    /**
     * 修改退货信息
     *
     * @param exCommodity
     * @return
     */
    boolean updateByPrimaryKey(ExCommodity exCommodity);

    /**
     * 多条件查询
     *
     * @param comName
     * @return
     */
    List<ExCommodity> getByParams(@Param("comName") String comName);
}